#!/usr/bin/make -f

DEB_PYTHON_SYSTEM := pycentral
DEB_COMPRESS_INCLUDE := .ode
DEB_COMPRESS_INCLUDE := .pdf

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk

makebuilddir/model-builder::
	if [ -e model_builder/Docs/Quick-start.pdf ]; then \
		echo "Quick-start.pdf shouldn't be part of the tarball because of licensing issues!"; \
		exit 1; \
	fi

install/model-builder::
	chmod 644 $(DEB_DESTDIR)/usr/share/doc/model-builder/examples/*
	chmod 644 $(DEB_DESTDIR)/usr/lib/python*/site-packages/model_builder/Examples/*
	sed -i '1s#python.*#python#' $(DEB_DESTDIR)/usr/bin/PyMB

